home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / source / lib / powerd_lib.lha / PowerD_PPC / IsHex.ass < prev    next >
Text File  |  2000-10-26  |  301b  |  27 lines

  1.  
  2. # IsHex(r3:LONG)(LONG)
  3.  
  4.     .text
  5.     .global    _IsHex
  6.  
  7. _IsHex:
  8.     cmpwi    r3,"0"
  9.     blt    .false
  10.     cmpwi    r3,"9"
  11.     ble    .true
  12.     cmpwi    r3,"A"
  13.     blt    .false
  14.     cmpwi    r3,"F"
  15.     ble    .true
  16.     cmpwi    r3,"a"
  17.     blt    .false
  18.     cmpwi    r3,"f"
  19.     bgt    .false
  20. .true:    li    r3,-1
  21.     blr
  22. .false:    li    r3,0
  23.     blr
  24.  
  25.     .type    _IsHex,@function
  26.     .size    _IsHex,$-_IsHex
  27.